/**
 * 
 */
package org.cuatrovientos.rollthedice;

/**
 * @author unai_inigo
 *
 */
public class Player {
	public Player(int strength, int defense, int constitucion, int agility,
			int movimiento) {

		this.strength = strength;
		this.defense = defense;
		this.constitucion = constitucion;
		this.agility = agility;
		this.movimiento = movimiento;
	}
	public Player(){
		
	}
	
	private int strength;
	private int defense;
	private int constitucion;
	private int agility;
	private int movimiento;
	
	
	
	public int attack(){
		Dice dice = new Dice();
		return strength + dice.roll();
	}
	public int defend(){
		Dice dice = new Dice();
		return defense + dice.roll();
	}
	public int esquivar(){
		Dice dice = new Dice();
		return agility + dice.roll();
	}
	public int moverse(){
		Dice dice = new Dice();
		return movimiento + dice.roll();
	}
	public int vida(){
		Dice dice = new Dice();
		return constitucion * 10;
	}
	public int getStrength() {
		return strength;
	}
	public void setStrength(int strength) {
		this.strength = strength;
	}
	public int getDefense() {
		return defense;
	}
	public void setDefense(int defense) {
		this.defense = defense;
	}
	public int getConstitucion() {
		return constitucion;
	}
	public void setConstitucion(int constitucion) {
		this.constitucion = constitucion;
	}
	public int getAgility() {
		return agility;
	}
	public void setAgility(int agility) {
		this.agility = agility;
	}
	public int getMovimiento() {
		return movimiento;
	}
	public void setMovimiento(int movimiento) {
		this.movimiento = movimiento;
	} 

}
